package cn.ywang.pattern.strategy;

/**
 * @author BeatificWang
 * @date 2019/3/15 22:51
 */
public class MetroStrategy implements TripStrategy {

	/**
	 * 出行
	 *
	 * @param distance
	 */
	@Override
	public void doTrip(double distance) {
		System.out.println("地铁，时速60公里");
		System.out.println("目标行程：" + distance + "公里");
		System.out.println("本次出行预计耗时：" + distance / 60 + "小时");
	}
}
